<%@ page import="java.util.List" %>
<%@ page import="com.tanxh.sss.pojo.Resume" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Resume resume = (Resume)request.getAttribute("resume");
    String contextPath = request.getContextPath();
%>
<html>
<head>
    <title>update page</title>
    <script type="text/javascript">
        function update(){
            document.getElementById("form1").submit();
        }

        function back(){
            window.history.go(-1);
        }
    </script>
</head>
<body>

<form id="form1" action="<%=contextPath%>/resume/update" method="post">
    <input type="hidden" name="id" value="<%= resume==null? "": resume.getId()%>">
    <table>
        <tr>
            <td>姓名</td>
            <td><input type="text" id="name" name="name" value="<%= resume==null? "": resume.getName()%>"></td>
        </tr>
        <tr>
            <td>电话</td>
            <td><input type="text" id="phone" name="phone" value="<%= resume==null? "": resume.getPhone()%>"></td>
        </tr>
        <tr>
            <td>地址</td>
            <td><input type="text" id="address" name="address" value="<%= resume==null? "": resume.getAddress()%>"></td>
        </tr>
        <tr>
            <td colspan="2"><input type="button" onclick="update()" value="提交" /></td>
            <td colspan="2"><input type="button" onclick="back()" value="返回" /></td>
        </tr>
    </table>
</form>
</body>
</html>